﻿@using WaterRevenueMS.WebUI.Extension.MvcHelper
@using WaterRevenueMS.Domain.ViewModels.BasicSet.RuleOfCode
@model RuleOfCodeModel
           
@using (Html.BeginForm("Edit", "RuleOfCode", FormMethod.Post, new { @class = "form-horizontal", @id = "modal-content" }))
{
@Html.HiddenFor(t => t.Id)
<div class="control-group">
    <label class="control-label-form">
        编码规则 :
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Bian_MGZ, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Bian_MGZ)
    </div>
</div>


<div class="control-group">
    <label class="control-label-form">
      编码对象:
    </label>
    <div class="controls">
        @Html.DropDownListFor(t => t.Bian_MDX, Model.RuleTypes, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Bian_MDX)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
        编码规则定义:
    </label>
    <div class="controls">
        @Html.DropDownListFor(t => t.Bian_MGZDY, Model.RuleItems, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Bian_MGZDY)
    </div>
</div>

<div class="control-group">
    <label class="control-label-form">
       用户编号长度:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Yong_HBHCD, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Yong_HBHCD)
    </div>
</div>

<div class="control-group">
    <label class="control-label-form">
       区域代码长度:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Qu_YDMCD, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Qu_YDMCD)
    </div>
</div>

<div class="control-group">
    <label class="control-label-form">
        表册代码长度:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Biao_CDMCD, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Biao_CDMCD)
    </div>
</div>

<div class="control-group">
    <label class="control-label-form">
       自增编号长度:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Zi_ZBHCD, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Zi_ZBHCD)
    </div>
</div>

<div class="control-group">
    <label class="control-label-form">
        自增编号增量:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Zi_ZBHZL, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Zi_ZBHZL)
    </div>
</div>
    <div class="control-group">
    <label class="control-label-form">
        水表号长度:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Shui_BHCD, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Shui_BHCD)
    </div>
</div>
}